// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '岗位实体',
        name: 'Position',
        url: "/Position/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"PosName":"","Status":"","Remark":""};
    const editFormOptions = [[{"title":"岗位名称","required":true,"field":"PosName"}],
                              [{"dataKey":"status","data":[],"title":"状态","required":true,"field":"Status","type":"select"}],
                              [{"title":"备注","field":"Remark"}]];
    const searchFormFields = {"PosCode":"","PosName":"","Status":""};
    const searchFormOptions = [[{"title":"岗位编号","field":"PosCode","type":"="},{"title":"岗位名称","field":"PosName","type":"like"},{"dataKey":"status","data":[],"title":"状态","field":"Status"}]];
    const columns = [{field:'Id',title:'岗位主键',type:'int',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'PosCode',title:'岗位编号',type:'string',link:true,width:120,require:true,align:'left',sort:true},
                       {field:'PosName',title:'岗位名称',type:'string',sort:true,width:120,require:true,align:'left'},
                       {field:'OrgId',title:'组织',type:'int',bind:{ key:'组织类型',data:[]},width:120,hidden:true,readonly:true,align:'left'},
                       {field:'Status',title:'状态',type:'sbyte',bind:{ key:'status',data:[]},width:120,require:true,align:'left'},
                       {field:'Remark',title:'备注',type:'string',width:120,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:120,require:true,align:'left',sort:true},
                       {field:'UpdateTime',title:'修改时间',type:'datetime',width:120,require:true,align:'left',sort:true}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}